// // 显示请求数据
// const num = 8;
// //第几页
// let page = 1;
// // let kw = '';
// let kw1='';
// let total;
// let orderType = 1;
// let orderName = 'goods_id';


const oSearch = $('.search-input');
const oBtn = $('.border span');
// console.log(oSearch,oBtn);
console.log(1);
const oUser = $('.user');
let usern = localStorage.getItem('LOGIN_USER');
if (usern) {
    let userHTML = `<a href="" class="userClick">${usern}的商城</a>`;
    oUser.html(userHTML);
    // 点击可以注销登录修改密码等等
    // let oUserClick = $('.userClick');
    // oUserClick.on('click', function () {  
        
    // })

} else {
    let userHTML = `<a href="../html/reg-login.html">登录</a>
    <span>|</span>
    <a href="../html/reg-login.html">注册</a>`;
    oUser.html(userHTML);
}

// 点击搜索
oBtn.on('click', function () {  
    console.log(123);
    location.href = '../html/list-phone.html';
    // kw = oSearch.val();
    // page = 1;
    // render();
})